package com.dinggao.crossgo.core.observer;

/**
 * created by mapingan on 2018/8/10.
 * 被观察者
 */
public interface PrivateObservable {
    /**
     * add a privateObserver to the list
     * @param privateObserver
     */
    void addObserver(PrivateObserver privateObserver);

    /**
     * remove a privateObserver from the list
     * @param privateObserver
     */
    void removeObserver(PrivateObserver privateObserver);

    /**
     * notify all observers in the list
     * @param obj
     */
    void notifyObservers(Object obj);

}
